const path = require('path');

const port = 3000; // 服务器端口
const viewDir = path.join(__dirname, '../', 'views'); // 页面根目录
const uploadDir = path.join(__dirname, '../', 'public', 'upload'); // 上传文件保存目录
const apiVersion = 'v1.0'; // 接口版本号
const secretOrPublicKey = 'signToken';

const DBCONFIG = {
    host : '127.0.0.1',
    user : 'root',
    password : '123456',
    database : 'node_music'
}

const miniProGram = {
    appid: 'wxd70ac3f8c35777b0',
    secret: '4984aa410e6006ec24391477f9b2e06a'
}

module.exports = {
    port,
    viewDir,
    uploadDir,
    apiVersion,
    secretOrPublicKey,
    miniProGram,
    DBCONFIG
}